.task-detail {
  padding: 16px;
  background: #f8fafc;
  min-height: 100vh;

  .loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #64748b;
  }

  .task-header {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;

    .task-status {
      position: absolute;
      top: 16px;
      right: 16px;

      .status-badge {
        display: inline-block;
        padding: 4px 12px;
        border-radius: 16px;
        font-size: 12px;
        font-weight: 500;

        &.in-progress {
          background: #dbeafe;
          color: #2196f3;
        }

        &.completed {
          background: #dcfce7;
          color: #10b981;
        }

        &.ended {
          background: #f1f5f9;
          color: #64748b;
        }

        &.overdue {
          background: #fee2e2;
          color: #ef4444;
        }
      }
    }

    .task-title {
      font-size: 18px;
      font-weight: 600;
      color: #1e293b;
      margin-bottom: 12px;
      line-height: 1.4;
      padding-right: 80px;

      .task-title-text {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }
    }

    .meta-item {
      display: flex;
      align-items: center;
      color: #64748b;
      font-size: 14px;
      margin-bottom: 8px;

      .meta-text {
        margin-left: 8px;
      }
    }
  }

  .task-progress {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

    .progress-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;

      .progress-value {
        color: #2196f3;
        font-weight: 600;
      }
    }
  }

  .task-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

    .content-section {
      margin-bottom: 10px;

      &:last-child {
        margin-bottom: 0;
      }

      .section-title {
        font-size: 16px;
        font-weight: 600;
        color: #1e293b;
        margin-bottom: 5px;
      }

      .section-content {
        margin-top: 12px;
        background: #f8fafc;
        border-radius: 4px;
        padding: 12px;

        .h2w__main {
          background-color: #f8fafc;
          font-size: 14px;
          color: #475569;
          line-height: 1.6;
          padding: 0;
        }
      }
    }
  }
}